package pl.agh.pp.zephyr.web.controlPanels;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;
import javax.faces.bean.NoneScoped;

import pl.agh.pp.zephyr.logic.Engine;
import pl.agh.pp.zephyr.model.User;

@ManagedBean(name = "userControlPanel")
@NoneScoped
public class UserControlPanel implements ControlPanel{

	private final User user;
	
	public UserControlPanel(User user) {
		super();
		this.user = user;
	}

	@ManagedProperty(value = "#{engine}")
	private Engine engine;

	public void setEngine(Engine engine) {
		this.engine = engine;
	}

	@Override
	public String getType() {
		return Type.USER.toString();
	}

	public User getUser() {
		return user;
	}

}
